package com.ibm.law.service.system;

import java.util.List;

import com.ibm.law.domain.Deduction;
import com.ibm.law.domain.Employee;
import com.ibm.law.service.DataAccessService;

public class DeductionService extends DataAccessService<Deduction> {

	public List<Deduction> getDeductionsByEmployee(Employee employee) {
		String jpql = "select o from Deduction o where o.employee=?";
		return entityManager.createQuery(jpql, Deduction.class)
				.setParameter(1, employee).getResultList();
	}

}
